// ngx-admin compliant styles
:host { 
  display: block; 

  .profile-info {
    p {
      margin-bottom: 0.5rem;
    }

    pre {
      background-color: #f5f5f5;
      padding: 1rem;
      border-radius: 4px;
      overflow-x: auto;
      
      &.sql-statement {
        max-height: 200px;
        overflow-y: auto;
      }

      &.profile-content {
        max-height: 400px;
        overflow-y: auto;
        font-size: 0.85rem;
      }
    }
  }

  // Real-time query container - simplified
  .realtime-query-container {
    // SQL Editor Section - clean design
    .sql-editor-section {
      margin-bottom: 1.5rem;

      .sql-editor {
        font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
        font-size: 14px;
        line-height: 1.6;
        resize: vertical;
        margin-bottom: 0.75rem;
      }

      .editor-toolbar {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0.5rem;

        .left-actions {
          display: flex;
          gap: 0.5rem;
        }

        .right-actions {
          display: flex;
          align-items: center;
          gap: 0.5rem;

          .limit-label {
            font-size: 0.875rem;
            font-weight: 500;
          }

          nb-select {
            min-width: 100px;
          }
        }
      }

      .hint-text {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.8125rem;
        opacity: 0.7;

        nb-icon {
          font-size: 1rem;
        }
      }
    }

    // Result header and actions
    .result-header {
      display: flex;
      justify-content: space-between;
      align-items: center;
      width: 100%;

      .result-actions {
        display: flex;
        align-items: center;
        gap: 0.5rem;

        nb-badge {
          display: inline-flex;
          align-items: center;
          gap: 0.25rem;

          nb-icon {
            font-size: 0.875rem;
          }
        }
      }
    }

    // No data message
    .no-data-message {
      text-align: center;
      padding: 2rem 1rem;
      opacity: 0.6;

      nb-icon {
        font-size: 3rem;
        margin-bottom: 0.5rem;
        display: block;
      }

      p {
        margin: 0;
      }
    }
  }

  // History filters
  .history-filters {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: rgba(0, 0, 0, 0.02);
    border-radius: 4px;

    .row {
      margin: 0;
    }
  }

  // Profile container
  .profile-container {
    margin-top: 1rem;
  }
  
  // Note: .profile-scroll-container styles moved to global styles.scss
  // because dialog is rendered in overlay outside component scope
}

// Utility classes
.me-2 {
  margin-right: 0.5rem !important;
}

.mt-3 {
  margin-top: 1rem !important;
}

.gap-2 {
  gap: 0.5rem;
}

// Use ngx-admin default styles for ng2-smart-table
// No custom styles needed - ngx-admin handles alignment automatically

// Custom pagination
.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 0;
  margin-top: 1rem;
  border-top: 1px solid #edf1f7;

  .pagination-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.875rem;
    color: #8f9bb3;

    .page-size-select {
      min-width: 120px;
    }
  }

  .pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;

    .page-info {
      font-size: 0.875rem;
      padding: 0 0.75rem;
      min-width: 100px;
      text-align: center;
    }

    button {
      min-width: 40px;

      nb-icon {
        font-size: 1.25rem;
      }

      &:disabled {
        opacity: 0.5;
        cursor: not-allowed;
      }
    }
  }
}
